package com.itheima.exception;

/**
 * @Author 王加鑫
 * @Date 2021/5/12 15:57
 * @Version 1.0
 */
public class ExceptionTest {
    public static void main(String[] args) {
        int[] arr = {1,2,3};
        try{
            arr = null;
            System.out.println(arr[0]);
            System.out.println(arr[3]);
            System.out.println(arr[1]);
        }catch (Throwable e){
            System.out.println("不要乱写代码");
        }
        System.out.println("嘿嘿我最帅");



    }
}
